package com.example.j20240419springaop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@Order(1)
@Slf4j
//@Component
@Aspect
public class AspectDemo4 {
    @Before("com.example.j20240419springaop.aspect.AspectDemo1.pt()")
    public void doBefore() {
        log.info("demo4，doBefore");
    }

    @After("com.example.j20240419springaop.aspect.AspectDemo1.pt()")
    public void doAfter() {
        log.info("demo4，doAfter");
    }
}
